Skip to content

Implement compiler preprocessing module for handling includes in Fort… - #39

Merged
saidctb merged 14 commits into
mainfrom
feature/compiler-preprocessing
May 31, 2026
Merged

Implement compiler preprocessing module for handling includes in Fort…#39
saidctb merged 14 commits into
mainfrom
feature/compiler-preprocessing

Conversation

@saidctb

@saidctb saidctb commented May 31, 2026

Copy link
Copy Markdown
Contributor

…ran and C parsers

Summary

Test plan

  • PYTHONPATH=. pytest -q

Merge checklist

  • All required checks are green (tests + parser-reference-guard).
  • If parser Fortran data or goldens changed, the PR explains why.
  • If using ignore-parser-reference-guard, the PR explains why it is safe.

@codecov

codecov Bot commented May 31, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.36453% with 93 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
c_parser/parser.py 87.98% 17 Missing and 14 partials ⚠️
semantics/c2ir.py 78.26% 9 Missing and 11 partials ⚠️
x2py/preprocessing.py 97.08% 10 Missing and 5 partials ⚠️
semantics/fortran2ir.py 89.79% 5 Missing and 5 partials ⚠️
semantics/pyi_printer.py 83.87% 5 Missing and 5 partials ⚠️
semantics/pyi_parser.py 92.06% 2 Missing and 3 partials ⚠️
x2py/cli.py 98.27% 1 Missing and 1 partial ⚠️
Flag Coverage Δ
py312 94.12% <92.36%> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
c_parser/lexer.py 100.00% <100.00%> (ø)
semantics/readiness.py 99.55% <100.00%> (+<0.01%) ⬆️
x2py/__init__.py 100.00% <100.00%> (ø)
x2py/c_type_probe.py 100.00% <100.00%> (ø)
x2py/fortran_type_probe.py 100.00% <100.00%> (ø)
x2py/cli.py 99.13% <98.27%> (-0.34%) ⬇️
semantics/pyi_parser.py 94.96% <92.06%> (-0.34%) ⬇️
semantics/fortran2ir.py 94.40% <89.79%> (-1.04%) ⬇️
semantics/pyi_printer.py 95.60% <83.87%> (-2.43%) ⬇️
x2py/preprocessing.py 97.21% <97.08%> (+0.73%) ⬆️
... and 2 more

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@saidctb
saidctb merged commit dfa0ced into main May 31, 2026
4 of 5 checks passed
@saidctb
saidctb deleted the feature/compiler-preprocessing branch May 31, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant